package com.stylefeng.guns.common.persistence.model;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author stylefeng
 * @since 2018-08-22
 */
@TableName("org_class_type")
public class OrgClassType extends Model<OrgClassType> {

    private static final long serialVersionUID = 1L;

    /**
     * 课程ID
     */
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 课程名
     */
	@TableField("class_name")
	private String className;
    /**
     * 英文名称
     */
	@TableField("english_name")
	private String englishName;
	/**
	 * 父ID
	 */
	@TableField("parent_id")

	private Integer parentId;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getClassName() {
		return className;
	}

	public void setClassName(String className) {
		this.className = className;
	}

	public String getEnglishName() {
		return englishName;
	}

	public void setEnglishName(String englishName) {
		this.englishName = englishName;
	}

	public Integer getParentId() {
		return parentId;
	}

	public void setParentId(Integer parentId) {
		this.parentId = parentId;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}
